package com.yongjie.springbootlogin.mapper;

import com.yongjie.springbootlogin.entity.Adminmuser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yongjie
 * @version 1.0
 * @date 2019/12/15 0:46
 */
public interface AdminMapper {
    /**
     * 添加
     * @param adminmuser
     * @return
     */
    int addAndmin(Adminmuser adminmuser);
    /**
     * 查询总条数
     */
    Integer AdminCount();

    /**
     * 获取分页数据
     * @param currentPage
     * @param pageSize
     * @return
     */

    List<Adminmuser> getAndminPages(@Param("currentPage" ) int currentPage, @Param("pageSize" )int pageSize);

}
